<Project>
  <!-- This depends on the root Directory.Build.props imported this file -->
  <Import Project="$(MSBuildThisFileDirectory)WasiApp.props" />
  <PropertyGroup>
    <Platform>AnyCPU</Platform>
    <EnableTargetingPackDownload>false</EnableTargetingPackDownload>
    <TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
    <WASI_SDK_PATH Condition="'$(WASI_SDK_PATH)' == '' and '$(MonoProjectRoot)' != ''">$([MSBuild]::NormalizeDirectory($(WasiProjectRoot), 'wasi-sdk'))</WASI_SDK_PATH>
    <RunAOTCompilation Condition="'$(RunAOTCompilation)' == ''">false</RunAOTCompilation>
    <PublishTrimmed>true</PublishTrimmed>
    <TrimMode>partial</TrimMode>
    <RunAnalyzers>false</RunAnalyzers>
  </PropertyGroup>
  <!-- This is temporary hack for https://github.com/dotnet/runtime/issues/61294 -->
  <ItemGroup>
    <_MonoRuntimeComponentDontLink Include="libmono-component-debugger-stub-static.a" />
    <!-- FIXME: This will exclude the diagnostics component if tracing is not on and threads are not on.  Which means that if you turn on threading, you will get diagnostics.  Is this what we want? -->
    <_MonoRuntimeComponentDontLink Include="libmono-component-diagnostics_tracing-static.a" Condition="'$(FeatureWasmPerfTracing)' != 'true' and $(FeatureWasmManagedThreads) != 'true'"/>
    <_MonoRuntimeComponentDontLink Include="libmono-component-hot_reload-stub-static.a" />
    <_MonoRuntimeComponentDontLink Include="libmono-component-marshal-ilgen-stub-static.a" />
  </ItemGroup>
</Project>
